package 封装作业;

import java.util.Scanner;

public class Information {
    //姓名
    public  String name;
    //生日
    private Date sr ;
    //身份证
    public  int sfz;

    public void setSr(Date sr) {
        this.sr = sr;
    }

    public  void setName(String name){
        this.name = name;
    }
    public void  setSfz(int sfz){
        this.sfz=sfz;
    }

    public void xinxi(){
        System.out.println("姓名是--"+name+"--身份呢证是--"+sfz+"---生日是---"+sr.getyear()+"年"+sr.getMonth()+"月"+sr.getDay()+"日");
    }



}
